package com.lagou.mapper;

import com.lagou.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper {

    //根据id查询对应的文章
//    public Article selectArticle(Integer id);


    @Select("select * from t_article")

    public List<Article> selectAllArtile() throws Exception;

}
